package com.lihui.test;

import com.lihui.queue.MyQueue1;

/**
 * 功能描述
 *
 * @author wileda
 * @date 2022/10/18  22:12
 */
public class Demo02 {
    public static void main(String[] args) {
        MyQueue1 myQueue1 = new MyQueue1();
        myQueue1.offer(12);
        myQueue1.offer(23);
        myQueue1.offer(34);
        myQueue1.offer(45);
        myQueue1.offer(56);
        myQueue1.display();
        System.out.println(myQueue1.size());
        System.out.println(myQueue1.poll());
        myQueue1.display();
        System.out.println(myQueue1.size());
        System.out.println(myQueue1.peek());
        myQueue1.display();
        System.out.println(myQueue1.size());
    }
}
